package com.banyuan;

public class Animal {
    private String race;
    private int age;
    private String sex;

    public String getRace() {
        return race;
    }

    public void setRace(String race) {
        this.race = race;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void eat() {
        System.out.println(race + "吃饭");
    }
    public void sleep() {
        System.out.println(race + "睡觉");
    }
}
